package co.com.inventarios.modelo;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * MCuenta entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "M_CUENTA", schema = "MANAGER")
public class MCuenta implements java.io.Serializable {

	// Fields

	private MCuentaId id;

	// Constructors

	/** default constructor */
	public MCuenta() {
	}

	/** full constructor */
	public MCuenta(MCuentaId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "idCuenta", column = @Column(name = "ID_CUENTA", unique = false, nullable = true, insertable = true, updatable = true, precision = 12, scale = 1)),
			@AttributeOverride(name = "usuario", column = @Column(name = "USUARIO", unique = false, nullable = true, insertable = true, updatable = true, length = 10)),
			@AttributeOverride(name = "contrasena", column = @Column(name = "CONTRASENA", unique = false, nullable = true, insertable = true, updatable = true, length = 10)),
			@AttributeOverride(name = "idEmpleado", column = @Column(name = "ID_EMPLEADO", unique = false, nullable = true, insertable = true, updatable = true, precision = 12, scale = 1)) })
	public MCuentaId getId() {
		return this.id;
	}

	public void setId(MCuentaId id) {
		this.id = id;
	}

}